//
// Created by 吴锐 on 2022/2/25.
//

#include "iostream"

using namespace std;

class Person {
    friend ostream& operator<<(ostream& cout, Person& p);
    friend void test01();
private:
    int m_A;
    int m_B;
};

ostream& operator<<(ostream& cout, Person& p){
    cout << "m_A = " << p.m_A << " m_B = " << p.m_B;
    return cout;
}

void test01(){
    Person p;
    p.m_A = 10;
    p.m_B = 10;

    cout << p << "hello world" << endl;
}

int main(){
    test01();
    return 0;
}